package com.nccsjz.pojo;
import java.io.File;
import java.util.Date;
public class Game implements java.io.Serializable{
   /**
	 * 
	 */
	private static final long serialVersionUID = 8L;
private long gameid;
   private String gametitle;
   private String gamepath;
   private Date  uploaddate;
   private String gamedesc;
   private String gamepic;
   private String gamepicp;//前台显示使用，图片路径
   private String gamepathp;//前台显示使用，游戏路径
   

public long getGameid() {
	return gameid;
}
public void setGameid(long gameid) {
	this.gameid = gameid;
}
public String getGametitle() {
	return gametitle;
}
public void setGametitle(String gametitle) {
	this.gametitle = gametitle;
}
public String getGamepath() {
	return gamepath;
}
public void setGamepath(String gamepath) {
	this.gamepath = gamepath;
}
public Date getUploaddate() {
	return uploaddate;
}
public void setUploaddate(Date uploaddate) {
	this.uploaddate = uploaddate;
}
public String getGamedesc() {
	return gamedesc;
}
public void setGamedesc(String gamedesc) {
	this.gamedesc = gamedesc;
}
public String getGamepic() {
	return gamepic;
}
public void setGamepic(String gamepic) {
	this.gamepic = gamepic;
}

/**
 * 处理来自数据库的路径数据
 * @return
 */
public String getGamepicp() {
	String[] temp=this.gamepic.split("\\\\");
	gamepicp=temp[temp.length-2]+File.separator+temp[temp.length-1];
	return gamepicp;
}
public void setGamepicp(String gamepicp) {
	this.gamepicp = gamepicp;
}

public String getGamepathp() {
	String[] temp=this.gamepath.split("\\\\");
	gamepathp=temp[temp.length-2]+File.separator+temp[temp.length-1];
	gamepathp = gamepathp.replaceAll("\\\\", "/");	
	return gamepathp;
}
public void setGamepathp(String gamepathp) {
	this.gamepathp = gamepathp;
}
   
}
